package com.youkeyi.ddy.cloud.common.api.application.applet.crm.config;

import com.youkeyi.ddy.cloud.common.api.application.applet.crm.config.dto.AppletCustomerConfigListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.config.param.AppletCustomerConfigListCloudParam;
import io.swagger.annotations.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 客户显示配置
 *
 * @author  liuxiawang
 * @Date 5/24/22 10:36 PM
 * @Location shenzhen.china
 */
@Api(tags = {"Customer Config"})
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-APPLICATION-APPLET", fallback = AppletCustomerConfigCloudServiceFallback.class)
@RequestMapping("/applet/customer/config")
public interface AppletCustomerConfigCloudService {

    // 查询配置列表
    @ApiOperation(value = "Query CustomerConfig List", authorizations = {@Authorization("com.youkeyi.ddy.cloud.common.api.application.applet.crm.config.BusinessCustomerConfigCloudService.list")})
    @ApiResponse(code = 200, message = "data Property in Response Body", response = AppletCustomerConfigListCloudDto.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "param", paramType = "query", value = "Param of Query CustomerConfig List", dataType = "AppletCustomerConfigListCloudParam", dataTypeClass = AppletCustomerConfigListCloudParam.class),
    })
    @GetMapping
    public abstract AppletCustomerConfigListCloudDto list(AppletCustomerConfigListCloudParam param);


}
